import { http } from "@/utils/http";

// 修改密码返回类型
export interface ChangePasswordResponse {
  code: number;
  msg: string;
}

// 修改密码
export const changePassword = (data: any) => {
  return http.request<ChangePasswordResponse>(
    "post",
    "/api/exhibitor/changePassword",
    {
      data
    }
  );
};

// 发送短信验证码
export const send = (data: any) => {
  return http.request<ChangePasswordResponse>("post", "/api/sms/send", {
    data
  });
};
